﻿using System.Runtime.InteropServices.ComTypes;
using System.Runtime.InteropServices;

namespace SilverlightViewport.Common.Interop
{
    [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), 
     Guid("0000011A-0000-0000-C000-000000000046")]
    public interface IParseDisplayName
    {
        [PreserveSig]
        int ParseDisplayName([In, MarshalAs(UnmanagedType.Interface)] IBindCtx pbc, 
                              [In, MarshalAs(UnmanagedType.LPWStr)] string pszDisplayName, 
                              out uint pchEaten, 
                              [MarshalAs(UnmanagedType.Interface)] out IMoniker ppmkOut);
    }
}
